<center>
  <h1>Mis Hojas de tiempo semanales</h1>
<% if  @dates.size>0
    @dates.sort!{|t1,t2|t2 <=> t1}
   @dates.each{ |thisDate| 
    %>
     <%= link_to  thisDate[0], :controller=>'week_time_sheets', :action=> 'edit', :id=>"1", :myDate=>thisDate[0].monday.to_s  %> | <%= thisDate[1] %><br/>
   <%}
   else
   %>   <center><b>No hay hojas de tiempo por el momento</b></center>
   <%end%>

   <script>
  try{
  <%  if current_user.role.id==3 %>
    Effect.toggle('subTasks','slide',{duration:0.0});
  <%  end %>
    Effect.toggle('subUsers','slide',{duration:0.0});
    Effect.toggle('subTasks','slide',{duration:0.0});
    alert(getElementById('id'));
  }catch(e){

  }
</script>
</center>